package Fragment;

import android.app.Activity;
import android.app.Fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ListView;

import Database.SQLquery;
import barcode.code.nhat.iuhbarcode.Main_Action;
import barcode.code.nhat.iuhbarcode.R;

public class Process_Fragment extends Fragment {

    private static final String ARG_SECTION_NUMBER = "section_number";

    public static Process_Fragment newInstance(int sectionNumber) {
        Process_Fragment fragment = new Process_Fragment();
        Bundle args = new Bundle();
        args.putInt(ARG_SECTION_NUMBER, sectionNumber);
        fragment.setArguments(args);
        return fragment;
    }

    public Process_Fragment() {
    }

    private SQLquery login;
    private ListView l1;

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        View v = inflater.inflate(R.layout.fragment_pro, container, false);
        login = new SQLquery(getActivity());
        login = login.open();

        l1 = (ListView) v.findViewById(R.id.list_student_pro);


        return v;
    }

    @Override
    public void onAttach(Activity activity) {
        super.onAttach(activity);
        ((Main_Action) activity).onSectionAttached(getArguments().getInt(ARG_SECTION_NUMBER));
    }
}
